package phoenix.web.locators.wildbuddies;

import org.openqa.selenium.By;

import phoenix.web.locators.base.SearchPageLocatorsBase;

/**
 * Index page locators for WildBuddies
 */
public class SearchPageLocators extends SearchPageLocatorsBase
{
	/**
	 * Overrides specific locators
	 */
	public SearchPageLocators()
	{
		blockUserList = By.id("userListContainer");
		// User menu
		blockUserMenu = By.xpath("//div[@id='userNavPhoto']/div/img");

		// Names of the action menu buttons
		txtTitle = By.xpath(".//*[@id='layoutContent']//*[contains(@class,'title')]");

		// Search menu
		blockSearchMenu = By.xpath(".//*[@id='userListSort']");
		linkSearchNear = By.xpath(".//*[@id='userListSort']//*[contains(@data-item,'near_you')]");
		linkSearchOnline = By.xpath(".//*[@id='userListSort']//*[contains(@data-item,'online')]");
		linkSearchRecently = By.xpath(".//*[@id='userListSort']//*[contains(@data-item,'new_members')]");
		blockSearchMenuCurrent = By.xpath(".//*[@id='userListSort']//*[contains(@class,'active')]");
		selectLocation = By.id("search-form-display-location");
		selectLocationValue = By.id("suggest-location-value");

		// Activity menu
		linkActivityMenu = By.xpath(".//*[@class='switcher']");
		linkActivityBrowsedMe = By.xpath("//*[@id='switcherActivity']//a[contains(@href,'/#views')]");
		linkActivityWinkedMe = By.xpath("//*[@id='switcherActivity']//a[contains(@href,'/#winks')]");
		linkActivityFeed = By.xpath("//*[@id='switcherActivity']//a[contains(@href,'/#newsFeed')]");

		// Top menu
		btnNavigationList = By.xpath("//*[@class='site-nav-item site-nav-top-list']");
		linkTopSearch = By.xpath("//*[@class='site-nav-item site-nav-top-search']");
		linkTopMyFriends = By.xpath("//*[@class='nav']//*[contains(@href,'/#favorites')]");
		linkTopActivity = By.xpath("//*[@class='nav']//*[contains(@href,'/#views')]");
		linkTopChatRoom = By.xpath("//*[@class='nav']//*[contains(@href,'/#rooms')]");
		linkSearchNear = By.xpath(".//*[@id='userListSort']//*[@data-item='near_you']");
		linkSearchOnline = By.xpath(".//*[@id='userListSort']//*[@data-item='online']");
		linkSearchRecently = By.xpath(".//*[@id='userListSort']//*[@data-item='new_members']");
		blockSearchResults = By.id("userListContainer");
		blockBannerUpgrade = By.xpath(".//*[@id='userListContainer']//*[@class='upgrade-banner']");
		btnBanner = By.xpath(".//*[@class='button-holder']//a[contains(@href,'/pay/membership')]");
		linkInvisibleMode = By.xpath(".//*[@class='item invisible']");
		linkVipInSearch = By.xpath(".//*[@class='item vip']");
		linkSMSChat = By.cssSelector(".b-smschat-icon.b-counter-icon");

		txtUserCounty = By.className("b-location");
		optionRadius50 = By.xpath("//button[@data-list-item='50']");
		optionRadius20 = By.xpath("//button[@data-list-item='20']");
		optionRadius100 = By.xpath("//button[@data-list-item='100']");
		btnSearch = By.id("searchFormSubmit");
		txtUserSreenname = By.className("screenname");
		blockUserListItem = By.cssSelector("div.b-user-info");
		linkUserPage = By.className("link");
		blockUsersListActivity = By.xpath(".//*[@id='userListContainer']//li");
		blockPageLoad = By.xpath("//*[@class='l-content loading']");

		// Pop-up alerts
		blockMessageAlert = By.xpath("//div[@class='notification-popup b-popup active mail']");
		blockWinkAlert = By.xpath("//div[@class='notification-popup b-popup active wink']");
		blockBrowseAlert = By.xpath("//div[@class='notification-popup b-popup active view']");

		// Counters
		blockMessagedMeCounter = By.xpath("//span[@data-messages-counter='data-messages-counter']");
		blockBrowsedMeCounter = By.xpath("//span[@data-counter='view']");
		blockWinkedMeCounter = By.xpath("//span[@data-counter='wink']");
		blockFavoritsCounter = By.xpath("//div[@id='site-nav']/ul/li[7]/a/span");
		blockNewsFeedsCounter = By.xpath("//span[@data-counter='newsFeed']");

		// Top Menu
		linkTopMessagedMe = By.cssSelector("span.b-chatrooms-icon.b-counter-icon");

		blockSMSChatHistory = By.id("smsChatFeedActivity");
		linkViewMoreActivitySMSChat = By.xpath("(//*[@id='smsChatFeedActivity']//a)[last()]");
		linkCountryListSuggest = By.xpath("(.//*[@id='search-form-location-box']//*[@class='item'])[1]");
	}

}
